3.168 \(\int x^2 (a+b \log (c x^n))^p \, dx\)

Optimal. Leaf size=89 \[ 3^{-p-1} x^3 e^{-\frac {3 a}{b n}} \left (c x^n\right )^{-3/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \Gamma \left (p+1,-\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \]

[Out]

3^(-1-p)*x^3*GAMMA(1+p,-3*(a+b*ln(c*x^n))/b/n)*(a+b*ln(c*x^n))^p/exp(3*a/b/n)/((c*x^n)^(3/n))/(((-a-b*ln(c*x^n
))/b/n)^p)

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2310, 2181} \[ 3^{-p-1} x^3 e^{-\frac {3 a}{b n}} \left (c x^n\right )^{-3/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \text {Gamma}\left (p+1,-\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \]

Antiderivative was successfully verified.

[In]

Int[x^2*(a + b*Log[c*x^n])^p,x]

[Out]

(3^(-1 - p)*x^3*Gamma[1 + p, (-3*(a + b*Log[c*x^n]))/(b*n)]*(a + b*Log[c*x^n])^p)/(E^((3*a)/(b*n))*(c*x^n)^(3/
n)*(-((a + b*Log[c*x^n])/(b*n)))^p)

Rule 2181

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> -Simp[(F^(g*(e - (c*f)/d))*(c +
d*x)^FracPart[m]*Gamma[m + 1, (-((f*g*Log[F])/d))*(c + d*x)])/(d*(-((f*g*Log[F])/d))^(IntPart[m] + 1)*(-((f*g*
Log[F]*(c + d*x))/d))^FracPart[m]), x] /; FreeQ[{F, c, d, e, f, g, m}, x] &&  !IntegerQ[m]

Rule 2310

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)*x)/n)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rubi steps

\begin {align*} \int x^2 \left (a+b \log \left (c x^n\right )\right )^p \, dx &=\frac {\left (x^3 \left (c x^n\right )^{-3/n}\right ) \operatorname {Subst}\left (\int e^{\frac {3 x}{n}} (a+b x)^p \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=3^{-1-p} e^{-\frac {3 a}{b n}} x^3 \left (c x^n\right )^{-3/n} \Gamma \left (1+p,-\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.10, size = 89, normalized size = 1.00 \[ 3^{-p-1} x^3 e^{-\frac {3 a}{b n}} \left (c x^n\right )^{-3/n} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \Gamma \left (p+1,-\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[x^2*(a + b*Log[c*x^n])^p,x]

[Out]

(3^(-1 - p)*x^3*Gamma[1 + p, (-3*(a + b*Log[c*x^n]))/(b*n)]*(a + b*Log[c*x^n])^p)/(E^((3*a)/(b*n))*(c*x^n)^(3/
n)*(-((a + b*Log[c*x^n])/(b*n)))^p)

________________________________________________________________________________________

fricas [F]  time = 0.42, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (b \log \left (c x^{n}\right ) + a\right )}^{p} x^{2}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*log(c*x^n))^p,x, algorithm="fricas")

[Out]

integral((b*log(c*x^n) + a)^p*x^2, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \log \left (c x^{n}\right ) + a\right )}^{p} x^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*log(c*x^n))^p,x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)^p*x^2, x)

________________________________________________________________________________________

maple [F]  time = 1.37, size = 0, normalized size = 0.00 \[ \int x^{2} \left (b \ln \left (c \,x^{n}\right )+a \right )^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(b*ln(c*x^n)+a)^p,x)

[Out]

int(x^2*(b*ln(c*x^n)+a)^p,x)

________________________________________________________________________________________

maxima [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a+b*log(c*x^n))^p,x, algorithm="maxima")

[Out]

Exception raised: RuntimeError >> ECL says: In function CAR, the value of the first argument is  0which is not
 of the expected type LIST

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int x^2\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^p \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a + b*log(c*x^n))^p,x)

[Out]

int(x^2*(a + b*log(c*x^n))^p, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{2} \left (a + b \log {\left (c x^{n} \right )}\right )^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(a+b*ln(c*x**n))**p,x)

[Out]

Integral(x**2*(a + b*log(c*x**n))**p, x)

________________________________________________________________________________________